package cn.edu.wynu.operator;

public class OperatorDemo04 {
    public static void main(String[] args) {
        //关系运算符的基本使用

        int a = 10;
        int b = 20;
        boolean rs1 = a > b; // 判断是否大于
        System.out.println(rs1);
        boolean rs2 = a < b; // 判断是否小于
        System.out.println(rs2);
        boolean rs3 = a >= b; // 判断是否大于等于
        System.out.println(rs3);
        boolean rs4 = a <= b; // 判断是否小于等于
        System.out.println(rs4);
        boolean rs5 = a == b; // 判断是否相等
        System.out.println(rs5);
        boolean rs6 = a != b; // 判断是否不相等
        System.out.println(rs6);
        System.out.println(10 == 10);
        System.out.println(10 != 10);
        System.out.println("abc" == "abc");

    }
}
